package data;


//this class represent a parking spot object

public class ParkingSpot {
	public int spotId;
	public int cellID;
	public Coordinate parkingCordinate;
	public String timeToAvailable;
	public int status;
	public double ownerID;
	public double buyingID;
	public int prize;
	public String comment;
	public String address;
	public String ownerName;
	public int ownerGrade;
	
	//constructor1
	public ParkingSpot(Coordinate cord, int cell,String tta,double owner_id,int prize, String comment, int spot){ 
		this.parkingCordinate=cord;
		Coordinate id;
		this.cellID=cell;
		this.ownerID=owner_id;
		this.status=0;//0-for rent
		this.timeToAvailable=tta;
		this.prize=prize;
		this.comment=comment;
		this.spotId=spot;
	}
	//constructor2
	public ParkingSpot(String add, String tta, int price, String name, int grade){
		this.address=add;
		this.timeToAvailable=tta;
		this.prize=price;
		this.ownerName=name;
		this.ownerGrade=grade;
		this.status=0;
	}

}
